﻿<%@ Page Language="C#" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="true" CodeBehind="ProcureCatalogList.aspx.cs" Inherits="HZ.Supervise.Web.TotalDrugs.ProcureCatalogList" Title="中标品种列表" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="tabcontent2">
        <table class="querylist">
            <tr>
                <td>
                    <table class="querylist">
                        <tr>
                            <td align="right">
                                流水号：
                            </td>
                            <td align="left">
                                <asp:TextBox runat="server" ID="txtGoodsId"></asp:TextBox>
                            </td>
                            <td align="right">
                                通用名：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtProductName" runat="server" ToolTip="可输入药品名称或拼音码"></asp:TextBox>
                            </td>
                            <td align="right">
                                剂型：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtMedicineModel" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <asp:Literal runat="server" ID="ltlAdvance" Text="&lt;tbody id='advance' style='display:none'&gt;"></asp:Literal>
                        <tr>
                            <td align="right">
                                商品名：
                            </td>
                            <td align="left">
                               <asp:TextBox ID="txtGoodsName" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                中标企业：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtCompany_TB" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                生产企业：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtProduceCompany_SC" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                规格：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtOutLook" runat="server"></asp:TextBox>
                            </td>
                            <td align="right">
                                包装：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtFactor" runat="server" MaxLength="5"></asp:TextBox>
                            </td>
                            <td align="right">
                                单位：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="txtUnit" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                          <td align="right">
                                &nbsp;采购类型：
                            </td>
                            <td align="left">
                                <asp:DropDownList runat="server" ID="ddlSortSource">
                                    <asp:ListItem Value="">全部</asp:ListItem>
                                    <asp:ListItem Value="0">基本药物</asp:ListItem>
                                    <asp:ListItem Value="1">非基本药物</asp:ListItem>
                                    <asp:ListItem Value="3">备案采购</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                          <td align="right">
                                &nbsp;采购范围：
                            </td>
                            <td align="left">
                                <asp:DropDownList runat="server" ID="ddlPurchaseRange">
                                    <asp:ListItem Value="">全部</asp:ListItem>
                                    <asp:ListItem Value="0">县及县以上可用</asp:ListItem>
                                    <asp:ListItem Value="1">全省</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                    </table>
                </td>
                <td width="100px">
                    <hz:HzButton ID="btnQuery" runat="server" Text="查询" OnClick="btnQuery_Click" CssClass="searchbtn" />
                    <hz:HzLinkButton ID="lbnSwitch" runat="server" CommandArgument="simple" OnClick="lbnSwitch_Click"
                        Text="高级查询"></hz:HzLinkButton>
                </td>
            </tr>
        </table>
    </div>
    <asp:GridView ID="gvwProduceCatalog" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无符合条件的数据！">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="GoodsID" HeaderText="流水号" />
            <asp:BoundField DataField="ProductName" HeaderText="通用名" />
            <asp:BoundField DataField="GoodsName" HeaderText="商品名" NullDisplayText="空" />
            <asp:BoundField DataField="MedicineModelName" HeaderText="剂型" />
             <asp:BoundField DataField="Material" HeaderText="材质" NullDisplayText="空" />
            <asp:BoundField DataField="Outlookc" HeaderText="规格" />
            <asp:BoundField DataField="Factor" HeaderText="包装">
                <HeaderStyle Width="30px" />
            </asp:BoundField>
            <asp:BoundField DataField="Unit" HeaderText="单位">
                <HeaderStyle Width="30px" />
            </asp:BoundField>
            <asp:BoundField DataField="CompanyName_SC" HeaderText="生产企业" />
            <asp:BoundField DataField="CompanyName_TB" HeaderText="中标企业" />
            <asp:BoundField DataField="GoodsName" HeaderText="商品名" Visible="false" />
            <asp:BoundField DataField="SortName" HeaderText="药品类别" Visible="false">
                <HeaderStyle Width="60px" />
            </asp:BoundField>
            <asp:BoundField DataField="ProcurePrice" HeaderText="采购限价" DataFormatString="{0:F3}">
                <HeaderStyle Width="55px" />
            </asp:BoundField>
            <asp:BoundField DataField="SortSource" HeaderText="采购类型" Visible="false"/>
            <asp:TemplateField HeaderText="采购类型">
                <ItemTemplate>
                    <%#HZ.Supervise.Web.Function.FormatDrugSource(Eval("SortSource"))%>
                </ItemTemplate>
                <HeaderStyle Width="60px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="采购范围">
                <ItemTemplate>
                    <%# HZ.Supervise.Web.Function.PurchaseRange(Eval("Flag"))%>
                </ItemTemplate>
                <HeaderStyle Width="60px" />
            </asp:TemplateField>
            <asp:BoundField DataField="Flag" HeaderText="采购范围" Visible="false" />
            <asp:BoundField DataField="ProjectName" HeaderText="项目" Visible="false" />
            <asp:BoundField Visible="false" DataField="AddTime" HeaderText="添加时间" DataFormatString="{0:yyyy-MM-dd}" />
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listip">
        <ul>
            <li>说明：<span>采购平台药品库目录查询，包括平台目前所以可供采购的药品。</span></li>
        </ul>
    </div>
    <div class="listctrl">
                <hz:HzButton ID="btnExport" runat="server" CssClass="btn" Text="导出Excel" ToolTip="将数据导出为Excel文件"
            OnClick="btnExport_Click" />
    </div>
</asp:Content>
